package com.wangxiang.shop.member.feign;

import com.wangxiang.shop.member.entity.CartEntity;
import com.wangxiang.shop.member.entity.MemberCartEntity;
import com.wangxiang.shop.member.entity.ShopCartEntity;


import com.wangxiang.shop.member.entity.SkuEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;
import java.util.List;

@FeignClient("shop-product")
public interface ProductFeign {
    @RequestMapping("product/sku/getSkuBySkuIdList")
    List<SkuEntity> getSkuList(@RequestBody List<Integer> list);

    @RequestMapping("product/spu/member/cart")
    List<MemberCartEntity> MemberCart(@RequestBody List<ShopCartEntity> shopCart);

    @RequestMapping("product/sku/update/ware")
    void updateWare(@RequestBody List<HashMap<String,Integer>> maps);

    @RequestMapping("product/sku/paynow")
    int paynow(@RequestBody HashMap<String,String> map);

    @RequestMapping("product/sku/updateWareByPayNow")
    int updateWareByPayNow(@RequestBody HashMap<String , Integer> map);

    @RequestMapping("product/spu/membercart")
    List<CartEntity> membercart(@RequestBody List<CartEntity> entity);



}
